package bm.com.ai.server.LLModel.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Data
@Configuration
@ConfigurationProperties(prefix = "ai.global")
public class GlobalAiConfig {

    private LoggingConfig logging = new LoggingConfig();
    private String defaultModel;
    private int timeoutMs = 30000;
    private int maxRetries = 2;

    @Data
    public static class LoggingConfig {
        private boolean logRequests = true;
        private boolean logResponses = true;
        private boolean maskSensitiveData = true;
        private boolean logHeaders = false;
    }

}
